{% extends 'checkstand/base/base.html' %}
{% load staticfiles %}
{% block navbar %}
    <nav class="navbar navbar-inverse navbar-fixed-top">
        <div class="container-fluid">
            <div class="navbar-header">
                <a class="navbar-brand" href="#"><span><img src="{% static 'brand/logo.png' %}" width="20px"
                                                            height="20px"> </span>点餐后台管理</a>
            </div>
            <div id="navbar" class="navbar-collapse collapse">
                <ul class="nav navbar-nav navbar-right">
                    <li><a href="#">未付款 <span class="badge">{{ request.session.unpay_order_number }}</span></a></li>
                    {% if request.session.is_login %}
                        <li><a href="#" id="seller_name_nav">管理员：{{ request.session.seller_name }}</a></li>
                        <li><a href="#" data-toggle="modal" data-target="#logoutModal">注销</a></li>
                    {% else %}
                        <li><a href='{% url 'checkstand:login' %}'>登陆</a></li>
                    {% endif %}

                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
                           aria-expanded="false">设置 <span class="caret"></span></a>
                        <ul class="dropdown-menu">
                            <li><a href="{% url 'checkstand:info' %}">查看信息</a></li>
                            <li><a href="{% url 'checkstand:info_update' %}">修改信息</a></li>
                            <li role="separator" class="divider"></li>
                            <li><a href="{% url 'checkstand:passwd_update' %}">修改密码</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </nav>
{% endblock %}